package com.crr.ex;

import org.springframework.validation.Errors;

import java.util.Map;

/**
 * 自定义验证异常
 */
public class ValidateException extends RuntimeException{
   Map<String,Object> errors;//记录验证错误字段
    public ValidateException(String message) {
        super("验证异常");
        this.errors= errors;
    }

    public Map<String, Object> getErrors() {
        return errors;
    }

    public void setErrors(Map<String, Object> errors) {
        this.errors = errors;
    }
}
